<div id="rangeservers">
<% if !@master_record['MasterSummary']['state'].empty?  %>
<div>
<table border="0">
<tbody>
<% @master_record['MasterSummary']['state'].each do |variable|  %>
<tr  bgcolor="#FF6666">
<td style="padding: 5;">
<%= variable['name'] %>=<%= variable['value'] %>
</td>
</tr>
<% end %>
</tbody>
</table>
</div>
<% end %>
<h3>Tables </h3>
<h4>Number of Tables: <%= @table_records['TableSummary']['tables'].length %></h4>
<h4>Master Version: <%= @master_record['MasterSummary']['version'] %></h4>
<table class="ht-table table_nodes">
<colgroup span="4"></colgroup>
<thead class="ht-table-thead">
<tr class="ht-table-subheader">
<th class="ht-table-subheadercell">
<div>
<span class="ht-table-sortable-header">Name <a href="/tables?sort=name&ord=<%=@n_ord%>"><img src=<%= @name_sort_img %> height="15" width="15"></a>
</span>
</div>
</th>
<th class="ht-table-subheadercell"> 
<div>
<span class="ht-table-sortable-header">ID <a href="/tables?sort=id&ord=<%=@id_ord%>"><img src=<%= @id_sort_img %> height="15" width="15"></a>
</span>
</th>
<th class="ht-table-subheadercell"> Range <br/>  Count </th>
<th class="ht-table-subheadercell"> CellStore <br/> Count</th>
<th class="ht-table-subheadercell"> Cell Count </th>
<th class="ht-table-subheadercell"> Disk </th>
<th class="ht-table-subheadercell"> Memory </th>
<th class="ht-table-subheadercell"> Average <br/>  Key Size </th>
<th class="ht-table-subheadercell"> Average <br/>  Value Size </th>
<th class="ht-table-subheadercell"> Compression <br/>  Ratio </th>

</tr>
</thead>
<% @table_records['TableSummary']['tables'].each do |table|  %>
<td class="ht-table-cell">
<a href="/graphs?server=<%= table['id'] %>&type=table"><%= table['name']%></a>
</td>
<td class="ht-table-cell">
<%= table['id'] %>
</td>
<td class="ht-table-cell" align="right">
<%= number_with_delimiter table['rangecount'] %>
</td>
<td class="ht-table-cell" align="right">
<%= number_with_delimiter table['filecount'] %>
</td>
<td class="ht-table-cell" align="right">
<%= number_with_delimiter table['cellcount'] %>
</td>
<td class="ht-table-cell" align="right">
<%= number_with_delimiter table['disk'] %>
</td>
<td class="ht-table-cell" align="right">
<%= number_with_delimiter table['memory'] %>
</td>
<td class="ht-table-cell" align="right">
<%= number_with_delimiter table['average_key_size'] %>
</td>
<td class="ht-table-cell" align="right">
<%= number_with_delimiter table['average_value_size'] %>
</td>
<td class="ht-table-cell" align="right">
<%= table['compression_ratio'] %>
</td>
</tr>
<% end %>
</table>
</div>